package com.diaohw.platform.remote.metadata;

import com.diaohw.platform.common.constant.ServiceConstant;
import com.diaohw.platform.framework.openfeign.GlobalFeignResultConfig;
import com.diaohw.platform.remote.metadata.obj.bo.ParamBO;
import com.diaohw.platform.remote.metadata.obj.bo.TableParamBO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestHeader;

import java.util.List;

/**
 * <p>
 * 自定义属性参数表 服务类
 * </p>
 *
 * @author D-Hw
 * @since 2024-09-18
 */
@FeignClient(name = ServiceConstant.metadata, contextId = "MetaValueRemoteService", url = "${platform.openfeign.metadata:}", configuration = GlobalFeignResultConfig.class)
public interface MetaValueRemoteService {


    /**
     * 新增
     */
    @PostMapping("")
    Boolean create(@RequestHeader("Tenant") String tenant, @RequestBody ParamBO data);

    /**
     * 删除
     */
    Boolean delete(String dataId, @RequestHeader("Tenant") String tenant);

    /**
     * 依据ID查看信息
     */
    List<TableParamBO> detail(String dataId, @RequestHeader("Tenant") String tenant);


}
